package com.zii.controller;

import com.zii.service.PoiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;

/**
 * @version 1.0
 * @description: TODO
 * @author: liu zi yi
 * @date 2024/9/18 9:47
 */
@RestController
@RequestMapping("/poi")
public class PoiController {
    @Autowired
    private PoiService poiService;

    @GetMapping("/exportMillion")
    public void exportMillion(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
        poiService.exportMillion(request, response);
    }
}
